namespace VegetableSale.NET.Entities;

public class SaleUpdateQuery
{
    private int id;
    private int commid;
    private int custid;
    private int salemoney;
    private int salemount;
    private int allmoney;
    private string saletime;

    public int Id
    {
        get => id;
        set => id = value;
    }

    public int Commid
    {
        get => commid;
        set => commid = value;
    }

    public int Custid
    {
        get => custid;
        set => custid = value;
    }

    public int Salemoney
    {
        get => salemoney;
        set => salemoney = value;
    }

    public int Salemount
    {
        get => salemount;
        set => salemount = value;
    }

    public int Allmoney
    {
        get => allmoney;
        set => allmoney = value;
    }

    public string Saletime
    {
        get => saletime;
        set => saletime = value ?? throw new ArgumentNullException(nameof(value));
    }

    public SaleUpdateQuery(int id, int commid, int custid, int salemoney, int salemount, int allmoney, string saletime)
    {
        this.id = id;
        this.commid = commid;
        this.custid = custid;
        this.salemoney = salemoney;
        this.salemount = salemount;
        this.allmoney = allmoney;
        this.saletime = saletime;
    }
}